{% from "components/macros/layout.html" import card, stats_strip, ranked_rows, chip %} {% from "components/macros/feedback.html" import empty_state %}
{{ stats_strip(figures, id="documents-figures") }}
{% call card("By kind") %} {% if kinds %}{{ ranked_rows(kinds) }}{% else %}{{ empty_state("Nothing on file yet", "Add a document from the Documents section.") }}{% endif %} {% endcall %} {% call card("Most used tags") %} {% if tags %}
{% for label, count in tags %}{% set url = list_url ~ "?tag=" ~ label|urlencode %}{{ chip(label ~ " " ~ count, False, url, hx_replace(url, "#overseer-main")) }}{% endfor %}
{% else %}

No tags yet.

{% endif %} {% endcall %}